var express = require('express');
var router = express.Router();

var userDao = require('../dao/userDao');

/* GET home page. */
router.get('/', function(req, res, next) {
  userDao.queryAll(req, res, next,function(userList,pageNum,userListSize){
    res.render('index', {"userList":userList,"pageNum":pageNum,"userListSize":userListSize});
  });

});

module.exports = router;
